#include <stdio.h>
int main()
{
	int i,m;
	printf("input a num");
	scanf("%d",&m);
	while(m!=0)
	{
		i=m%10;
		m=m/10;
		printf("%d",i);
	}
	printf("\n");
}
